const { BrowserWindow }  = require('electron')
const { windowUrl } = require('@/config/windowUrl.js')
class ProviderWindowController {
    constructor(isOpen=true) {
        this.isOpen = isOpen;
        this.window = null;
        this.windowConfig = {
            width: 800,
            height:600,
            frame: false,
            webPreferences: {
                nodeIntegration: true,
                nodeIntegrationInWorker: true,
                nodeIntegrationInSubFrames:true,
            }
        }
    }windowUrl
    createWindow() {
        this.window = new BrowserWindow(this.windowConfig);
        this.window.loadURL(windowUrl.provider)
    }
}

exports.default = ProviderWindowController